import docx

def get_docx(file_name):
    d = docx.opendocx(file_name)
    doc = docx.getdocumenttext(d)
    return doc

doc = get_docx('SHIVS-OMS-DMS-V2.1-新特性列表.doc')
print(doc)  # 输出行数：1075
for d in doc[:5]:
    if "刘嘉伟" in d:
	    print("ok")
   # print(d) # 打印前5行
   
   
def a(b):
    c = b + 1
	c2 = b + 2
	return c, c2



def b(w):
    return w[0],w[1]
	
wjm2 = tumples[0]
banbh = tumples[1]

tumples = ('EOS-NRPS-CORE_V1.4.SP2-新特性列表.doc', 'V1.4.SP2')

def ReadFile():#读取文件里的流水号,去掉前面4喂和最后的空格
    with open(r'C:\Users\01383317\doxx\lsh.txt', 'r') as f:
        nr = f.readlines()
    l = []
    for i in range(len(nr)):
        i = (nr.pop())[4:11]
        l.append(i)
    return l
	
	print(l)